<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    [#include "/admin/include/admin_static.htm"]
    [#import "/admin/include/admin_pagination.ftl" as p/]
</head>
<body>
<div class="main_admin_content">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>实名认证</legend>
    </fieldset>

    <form id="searchForm" method="post" action="${path}/admin/approve/list.aspx">
        <table class="search_table_div">
            <tr>
                <td class="column">用户ID：</td>
                <td><input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" name="userId" value="${userId }"/>
                </td>
                <td class="column">用户名：</td>
                <td><input type="text" name="userName" value="${userName }"/></td>
                <td class="column">真实姓名：</td>
                <td><input type="text" name="userRealName" value="${userRealName }"/></td>
            </tr>
            <tr>
                <td class="column">申请日期：</td>
                <td>
                    <input type="text" onclick="WdatePicker();" value="${begin_date }"
                           name="begin_date" class="short" readonly="readonly"/>
                    <i>至</i>
                    <input type="text" onclick="WdatePicker();" value="${end_date }"
                           name="end_date" class="short" readonly="readonly"/>
                </td>
                <td class="column">审核状态：</td>
                <td>
                [@u.select list={'':"全部","0":"申请中","1":"审核通过","-1":"未通过"}
                name="authStatus" value="${(authStatus)!''}" /]
                </td>
            </tr>
            <tr>
                <th colspan="100" class="btn_td">
                    <input name="submit" type="submit" class="layui-btn " value="查询"/>
                    <input onclick="resent();" type="button" class="layui-btn " value="清空"/>
                </th>
            </tr>
        </table>
    </form>

    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">

        </colgroup>
        <thead>
        <tr>
            <th>用户ID</th>
            <th>用户名</th>
            <th>真实姓名</th>

            <th>证件号码</th>

            <th>出生日期</th>

            <th>身份证照</th>
            <th>状态</th>
            <th>申请时间</th>
            <th>审核</th>

        </tr>
        </thead>

    [#list     realNames as realName]

        <tr>
            <td>${realName.user_id}</td>
            <td> ${realName.u_user_name}</td>
            <td>${realName.real_name }</td>

            <td>${realName.id_number}</td>

            <td>${realName.birthdate}</td>

            <td>
                <a class="uid" href="${realName.card_pic1}" target="_blank">正面</a> |
                <a class="uid" href="${realName.card_pic2}" target="_blank">反面</a>
            </td>
            <td>

                [#if realName.status==0 ]

                    申请中
                [#elseif  realName.status==1 ]

                    已通过
                [#else]

                    未通过
                [/#if]


            </td>
            <td>
            ${p2p_date_format(realName.addtime  ,"yyyy-MM-dd HH:mm:ss")}



            </td>
            <td>

                [#if realName.status==0 ]
                    <input type="button" value="审核"
                           onclick="window.location.href='${path}/admin/approve/${realName.id}.aspx'"
                           class="layui-btn "/>
                [#elseif  realName.status==1 ]

                    <input type="button" value="查看"
                           onclick="window.location.href='${path}/admin/approve/${realName.id}.aspx'"
                           class="layui-btn "/>
                [/#if]

            </td>
        </tr>
    [/#list]

    </table>

[@p.pager pager = page parameterMap={"authStatus":"${authStatus}","userRealName":"${userRealName}","userId":"${userId }","userName":"${userName }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/approve/list.aspx"/]

</div>
</body>
</html>